package com.example.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @Auther: Sun
 * @Date: 2025/9/22 - 09 - 22 - 10:43
 * @Description: com.example.pojo
 */
@Data
public class ClazzQueryParam {
    // 当前页码，默认值为1
    private Integer page=1;
    // 每页显示条数，默认值为10
    private Integer pageSize=10;
    // 班级姓名，用于模糊查询
    private String name;

    // 查询开始日期，使用@DateTimeFormat注解指定日期格式为"yyyy-MM-dd"
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;
    // 查询结束日期，使用@DateTimeFormat注解指定日期格式为"yyyy-MM-dd"
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBegin() {
        return begin;
    }

    public void setBegin(LocalDate begin) {
        this.begin = begin;
    }

    public LocalDate getEnd() {
        return end;
    }

    public void setEnd(LocalDate end) {
        this.end = end;
    }
}